$OpenBSD: patch-libgcc_config_arm_unwind-arm_h,v 1.1 2016/09/15 10:22:10 pascal Exp $
--- libgcc/config/arm/unwind-arm.h.orig	Wed Sep 14 14:45:06 2016
+++ libgcc/config/arm/unwind-arm.h	Wed Sep 14 14:45:44 2016
@@ -48,7 +48,8 @@ extern "C" {
       if (!tmp)
 	return 0;
 
-#if (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__)
+#if (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__) || \
+	defined(__OpenBSD__)
       /* Pc-relative indirect.  */
 #define _GLIBCXX_OVERRIDE_TTYPE_ENCODING (DW_EH_PE_pcrel | DW_EH_PE_indirect)
       tmp += ptr;
